import request from "@/utils/http";
/**
 * 用章人和经办人
 *label: 'name',
  value: 'id',
  desc: 'deptName'
 */
export const userList = (params) => {
    return request({
        url: "/api/blade-system/user/list?size=-1",
        params,
    });
};
/**
 * 所属公司 
 *label: 'deptName',
  value: 'id'
 */
export const companyList = (params) => {
    return request({
        url: "/api/blade-system/dept/list?size=-1",
        params,
    });
};
/**
 * 印章类型 
 *label: 'dictValue',
  value: 'dictKey'
 */
export const sealList = (params) => {
    return request({
        url: "/api/blade-system/dict-biz/dictionary?code=seal_type",
        params,
    });
};

/**
 * 用章部门 
 *label: 'deptName',
  value: 'id'
 */
export const deptList = (params) => {
    return request({
        url: "/api/blade-system/dept/list?size=-1",
        params,
    });
};

export const taskNode = (params) => {
    return request({
        url: '/api/blade-workflow/design/model/taskNode?modelKey=office-seal',
        params,
    })
}

/**
 * 提交申请
 */

export const add = (data) => {
    return request({
        url: '/api/blade-basic/app/sealApplication/submit',
        method: 'post',
        data,
    })
}
